//
//  UIViewController+Refresh.m
//  babyMemoryPro
//
//  Created by student on 15-6-24.
//  Copyright (c) 2015年 niit. All rights reserved.
//

#import "UIViewController+Refresh.h"

@implementation UIViewController (Refresh)
-(MJRefreshHeaderView *)addHeader{
    MJRefreshHeaderView *header = [MJRefreshHeaderView header];
    header.scrollView = self.tableView;
    [header beginRefreshing];
    return header;
}

-(MJRefreshFooterView *)addFooter{
    MJRefreshFooterView *footer = [MJRefreshFooterView footer];
    footer.scrollView = self.tableView;
    return footer;
}
@end
